package cn.passlink.www.Mapper;

import cn.passlink.www.Enity.sysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface sysUserDao {

  sysUser findById(String user_id);

  String findUserByArticleId(String article_id);

  String findUsernameById (String user_id);
  boolean updateById(sysUser user);

  sysUser findByUsername(String username);
  sysUser findByUsernameOrEmail(String username,String email);

  sysUser findByEmail(String email);

  boolean pullUser(sysUser regUser);

  int getCounts();

  int getArticlesCounts(String user_id);

  void updateArticlesCounts (String user_id);
}
